package org.teamswift.crow.rbac.entity;

import lombok.Data;
import org.teamswift.crow.rbac.primaryKey.UserForeignKey;
import org.teamswift.crow.rest.common.ICrowIO;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

@Entity
@Data
@IdClass(UserForeignKey.class)
public class CrowUserOrganization implements ICrowIO {

    @Id
    private Integer userId;

    /**
     * crow_organization_id
     */
    @Id
    private Integer foreignId;

}
